package com.jianjain.test;

import com.jianjian.dao.UserDao;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author Zsir
 * @create 2021-12-11 17:42
 */

public class test1 {
   ApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext.xml");

   @Test
   public void test1(){
       UserDao userDao = (UserDao) applicationContext.getBean("userDao");
       userDao.save();

   }



}
